package com.haoxi.gateway.common;

public class SYSConst {

    // /////////////////// SYSTEM config //////////////////////

    // 定时监测敏感号和黑名单
    public final static int CHECK_SPECIALMOBILE_CHG_TIME = 10 * 60 * 1000;

    // 定时监测系统配置控制参数
    public final static int CHECK_CONTROL_SYSCONF_CHG_TIME = 10 * 60 * 1000;

    // RESP数据超时检测线程时间
    public final static int CHECK_OVERDATE_RESPDATA_TIME = 5 * 60 * 1000;

    // Report数据超时检测线程时间
    public final static int CHECK_OVERDATE_REPORTDATA_TIME = 15 * 60 * 1000;

    // CMPPActive 心跳时间15秒
    public final static int CMPP_ACTIVE_TEST_TIME = 15 * 1000;

    // SGIPActive 心跳时间15秒
    public final static int SGIP_ACTIVE_TEST_TIME = 30 * 1000;

    // time of the SGIPDeliverConnector keep alive when the connnector is free.
    public final static int SGIP_DELIVER_CONN_FREE_TIME = 1 * 60 * 1000;

    // MTRESPMap 超时时间
    public final static int OVERDATE_NEEDMTRESP_DATA_TIME = 3 * 60 * 1000;

    // Report相应临时表中数据超时时间
    public final static int OVERDATE_NEEDREPORT_DATA_TIME = 72;

    // 定时匹配Report临时记录表和等待Report的MT临时表数据
    public final static int CHECK_REPORT_MT_DATA_TIME = 10 * 1000;

    // /////////////////// SYSTEM config //////////////////////
    public final static String CONF_MEMORYDATA_PROTECT = "memorydata_protect";
    public final static String CONF_SUBMIT_SPEED = "submit_speed";
    public final static String CONF_GETMT_SPEED = "get_mt_speed";
    public final static String CONF_DEALREPORT_SPEED = "deal_report_speed";

    public final static String CONF_DB_GATEWAY = "gateway_sms";
    public final static String CONF_DB_HISTORY = "gateway_history";
    public final static String CONF_DB_MYSQL = "gateway_mysql";

    public final static int SYNC_BLACKMOBILE_TYPE = 0;
    public final static int SYNC_SENSEMOBILE_TYPE = 1;
    public final static int SYNC_BLACKLONGNUM_TYPE = 2;

    public final static int CM_OPCODE = 0;
    public final static int UNICOM_OPCODE = 1;
    public final static int DX_OPCODE = 2;
    public final static int WT_OPCODE = 3;
    public static final String SMGP30 = "30";
    public static final String SMGP13 = "13";
    public static final String SMGP10 = "10";
}
